﻿function btnsave()
{
$('Sagree').style.display="none";
$('StxtCommInput').style.display="none";
var txtCommInput=$('txtCommInput').value;
  if(!$ValidButton$()||!$('agree').checked||txtCommInput.length>3799){if($(!$('agree').checked)){$('Sagree').style.display="";}if(txtCommInput.length>3799){$('StxtCommInput').style.display="";}return;} 
  showProgressBar(true);
  $get("btnCommInput").disabled=true;
  if(SessionType=='1'&&lid!=0)
  {
    lid=$('lid').value;
  }
  WebServices.User.Teach.SetSesState0(cid,sid,lid, memberno, tmemberno, $('LanguageLearn').value, $('BaseLanguage').value, $('StartDate').value, $('StartTime').value, $('LongTime').value,  $('TIMType').value, $('AudioType').value,$('SIM').value,txtCommInput,Timezone,state,SessionType,onners);
}
function onners(re)
{  
    if(re)
    {
       showProgressBar(false);
       top.location='/session/session.htm?sid='+sid;
        
    }
}
function IMchange(e)
{
   document.getElementById('SIM').value=_St_List[e.value-1]; 
   document.getElementById('TIM').innerHTML=_Te_List[e.value-1]; 
}
